







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input type="text" name="search_data"  placeholder="庄家名称" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
         
            <button class="layui-btn"  id="search"  url="{:url('AppcanList')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>

        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <ob_link><a  href="{:url('AppcanAdd')}" style="color: white">   <button class="layui-btn" >新 增</button></a></ob_link>
    
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>

    </xblock>
    <hr/>

    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                序号
            </th>
            <th>应用基础信息</th>
            <th>会员账号应用统计</th>
            <th>其它</th>
            <th>操作</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td >
                {$k}
            </td>
            <td >
                <div><label>应用名称:</label><span>{$vo.name}</span></div>
                <div>  <label>合作模式:</label><span>{if condition='$vo.type eq 1'}余额模式{else/}成数模式{/if}</span></div>
                <div> <label>配置成数:</label><span>{$vo.configuration_number}</span></div>
                <div> <label>返点:</label><span>{$vo.return_point}</span></div>
                <div> <label>赔率:</label><span>  {$vo.mult}</span></div>
                <div> <label>备注描述:</label><span>  {$vo.remark}</span></div>
            </td>

            <td >
                <div><label>账号名称:</label><span>{$vo.username}</span></div>
                <div><label>余额:</label><span>{$vo.user_balance}</span></div>
                <div>  <label>总下注金额:</label><span>{$vo->get_bet_money($vo.username)}</span></div>
                <div> <label>中奖数:</label><span>0</span></div>
                <div> <label>亏损数:</label><span>0</span></div>
                <div> <label>余额转入笔数:</label><span>0</span></div>
            </td>

            <td >
                <div><label>创建时间:</label><span>{$vo.create_time}</span></div>
                <div style="margin-bottom: 5px;"><label>是否开启:</label><span>  {if condition="$vo['status'] eq 1"}
                <ob_link><a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' =>0))}">  {$vo.status_text}</a></ob_link>

                {else/}
                <ob_link><a class="ajax-get " href="{:url('setStatus', array('ids' => $vo['id'], 'status' => 1))}">  {$vo.status_text}</a></ob_link>

                {/if}</span></div>
            </td>

            <td class="td-manage">


                <div style="margin-bottom: 5px;"><label>编辑:</label><span>  <ob_link><a title="编辑"  href="{:url('AppcanEdit', array('id' => $vo['id']))}" >
                    <i class="layui-icon">&#xe642;</i>
                </a></ob_link></span></div>
                <!--<div style="margin-bottom: 5px;">  <label>删 除:</label><span>  <ob_link><a title="删 除" class="ajax-get"  href="{:url('setStatus', array('ids' => $vo['id'], 'status' => -1))}" >-->
                    <!--<i class="layui-icon">&#xe640;</i>-->
                <!--</a></ob_link></span></div>-->



            </td>
        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12"  valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        layer=layui.layer;
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>

</body>

</html>




